using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.ServiceProcess;
using System.Text;

namespace NETL.Engine.Service
{
	public partial class ServiceRunner : ServiceBase
	{
		private NETL.Engine.Server myServer = null;

		public ServiceRunner()
		{
			InitializeComponent();
			ServiceName = "NETL Engine Service";
		}

		protected override void OnStart(string[] args)
		{
			myServer = new Server();
			myServer.Init();
			myServer.Start();
		}

		protected override void OnStop()
		{
			myServer.Stop();
		}
	}
}
